package com.banmoon.flyweight;

import java.rmi.activation.UnknownObjectException;

public class FlyweightMain {

    public static void main(String[] args) throws UnknownObjectException {
        Chessboard chessboard = new Chessboard();
        chessboard.put(0, 0, "black");
        chessboard.put(0, 1, "black");
        chessboard.put(1, 0, "white");
        chessboard.put(1, 1, "white");
        System.out.println(chessboard.chessboard[0][0] == chessboard.chessboard[0][1]);
        System.out.println(chessboard.chessboard[1][0] == chessboard.chessboard[1][1]);
//        chessboard.showChessboard();
    }

}
